package com.quwan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quwan.entity.TRoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author laozhang
 * @date 2021/9/25 11:32
 */
public interface TRoleMenuMapper extends BaseMapper<TRoleMenu> {

    /**
     * 删除角色与菜单关联数据
     * @param roleId
     */
    void deleteRoleMenu(@Param("roleId") Integer roleId);

    /**
     * 增加角色与菜单关联数据
     * @param rmList
     */
    void insertRoleMenuList(@Param("rmList") List<TRoleMenu> rmList);
}
